package com.ios.common.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * IosSysCustomer entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ios_sys_customer", catalog = "ios")
public class IosSysCustomer implements java.io.Serializable {

	// Fields

	private Long customerId;
	private String customerName;
	private String customerSpell;
	private String customerCode;
	private String contactAddress;
	private Integer customerType;
	private String taxNo;
	private String bankNo;
	private String contactPerson;
	private String mobilePhone;
	private String telephone;
	private String fax;
	private String EMail;
	private String postCode;
	private Float preSetPrice;
	private Float preSetCost;
	private Float preAccountReceivable;
	private Float preAccountPayable;
	private Float receivableTrustValue;
	private Float payableTrustValue;
	private Float totalAccountReceivable;
	private Float totalAccountPayable;
	private Float defaultReceiveDate;
	private Float defaultPayDate;
	private String remark;
	private Long createUserId;
	private String createUserName;
	private String createTime;
	private String version;

	// Constructors

	/** default constructor */
	public IosSysCustomer() {
	}

	/** minimal constructor */
	public IosSysCustomer(String customerName, String customerCode) {
		this.customerName = customerName;
		this.customerCode = customerCode;
	}

	/** full constructor */
	public IosSysCustomer(String customerName, String customerSpell,
			String customerCode, String contactAddress, Integer customerType,
			String taxNo, String bankNo, String contactPerson,
			String mobilePhone, String telephone, String fax, String EMail,
			String postCode, Float preSetPrice, Float preSetCost,
			Float preAccountReceivable, Float preAccountPayable,
			Float receivableTrustValue, Float payableTrustValue,
			Float totalAccountReceivable, Float totalAccountPayable,
			Float defaultReceiveDate, Float defaultPayDate, String remark,
			Long createUserId, String createUserName, String createTime,
			String version) {
		this.customerName = customerName;
		this.customerSpell = customerSpell;
		this.customerCode = customerCode;
		this.contactAddress = contactAddress;
		this.customerType = customerType;
		this.taxNo = taxNo;
		this.bankNo = bankNo;
		this.contactPerson = contactPerson;
		this.mobilePhone = mobilePhone;
		this.telephone = telephone;
		this.fax = fax;
		this.EMail = EMail;
		this.postCode = postCode;
		this.preSetPrice = preSetPrice;
		this.preSetCost = preSetCost;
		this.preAccountReceivable = preAccountReceivable;
		this.preAccountPayable = preAccountPayable;
		this.receivableTrustValue = receivableTrustValue;
		this.payableTrustValue = payableTrustValue;
		this.totalAccountReceivable = totalAccountReceivable;
		this.totalAccountPayable = totalAccountPayable;
		this.defaultReceiveDate = defaultReceiveDate;
		this.defaultPayDate = defaultPayDate;
		this.remark = remark;
		this.createUserId = createUserId;
		this.createUserName = createUserName;
		this.createTime = createTime;
		this.version = version;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "native")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "customer_id", unique = true, nullable = false)
	public Long getCustomerId() {
		return this.customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	@Column(name = "customer_name", nullable = false, length = 100)
	public String getCustomerName() {
		return this.customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	@Column(name = "customer_spell", length = 100)
	public String getCustomerSpell() {
		return this.customerSpell;
	}

	public void setCustomerSpell(String customerSpell) {
		this.customerSpell = customerSpell;
	}

	@Column(name = "customer_code", nullable = false, length = 100)
	public String getCustomerCode() {
		return this.customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	@Column(name = "contact_address", length = 300)
	public String getContactAddress() {
		return this.contactAddress;
	}

	public void setContactAddress(String contactAddress) {
		this.contactAddress = contactAddress;
	}

	@Column(name = "customer_type")
	public Integer getCustomerType() {
		return this.customerType;
	}

	public void setCustomerType(Integer customerType) {
		this.customerType = customerType;
	}

	@Column(name = "tax_no", length = 50)
	public String getTaxNo() {
		return this.taxNo;
	}

	public void setTaxNo(String taxNo) {
		this.taxNo = taxNo;
	}

	@Column(name = "bank_no", length = 50)
	public String getBankNo() {
		return this.bankNo;
	}

	public void setBankNo(String bankNo) {
		this.bankNo = bankNo;
	}

	@Column(name = "contact_person", length = 100)
	public String getContactPerson() {
		return this.contactPerson;
	}

	public void setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
	}

	@Column(name = "mobile_phone", length = 50)
	public String getMobilePhone() {
		return this.mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	@Column(name = "telephone", length = 50)
	public String getTelephone() {
		return this.telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name = "fax", length = 50)
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "e_mail", length = 50)
	public String getEMail() {
		return this.EMail;
	}

	public void setEMail(String EMail) {
		this.EMail = EMail;
	}

	@Column(name = "post_code", length = 50)
	public String getPostCode() {
		return this.postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	@Column(name = "pre_set_price", precision = 12, scale = 0)
	public Float getPreSetPrice() {
		return this.preSetPrice;
	}

	public void setPreSetPrice(Float preSetPrice) {
		this.preSetPrice = preSetPrice;
	}

	@Column(name = "pre_set_cost", precision = 12, scale = 0)
	public Float getPreSetCost() {
		return this.preSetCost;
	}

	public void setPreSetCost(Float preSetCost) {
		this.preSetCost = preSetCost;
	}

	@Column(name = "pre_account_receivable", precision = 12, scale = 0)
	public Float getPreAccountReceivable() {
		return this.preAccountReceivable;
	}

	public void setPreAccountReceivable(Float preAccountReceivable) {
		this.preAccountReceivable = preAccountReceivable;
	}

	@Column(name = "pre_account_payable", precision = 12, scale = 0)
	public Float getPreAccountPayable() {
		return this.preAccountPayable;
	}

	public void setPreAccountPayable(Float preAccountPayable) {
		this.preAccountPayable = preAccountPayable;
	}

	@Column(name = "receivable_trust_value", precision = 12, scale = 0)
	public Float getReceivableTrustValue() {
		return this.receivableTrustValue;
	}

	public void setReceivableTrustValue(Float receivableTrustValue) {
		this.receivableTrustValue = receivableTrustValue;
	}

	@Column(name = "payable_trust_value", precision = 12, scale = 0)
	public Float getPayableTrustValue() {
		return this.payableTrustValue;
	}

	public void setPayableTrustValue(Float payableTrustValue) {
		this.payableTrustValue = payableTrustValue;
	}

	@Column(name = "total_account_receivable", precision = 12, scale = 0)
	public Float getTotalAccountReceivable() {
		return this.totalAccountReceivable;
	}

	public void setTotalAccountReceivable(Float totalAccountReceivable) {
		this.totalAccountReceivable = totalAccountReceivable;
	}

	@Column(name = "total_account_payable", precision = 12, scale = 0)
	public Float getTotalAccountPayable() {
		return this.totalAccountPayable;
	}

	public void setTotalAccountPayable(Float totalAccountPayable) {
		this.totalAccountPayable = totalAccountPayable;
	}

	@Column(name = "default_receive_date", precision = 12, scale = 0)
	public Float getDefaultReceiveDate() {
		return this.defaultReceiveDate;
	}

	public void setDefaultReceiveDate(Float defaultReceiveDate) {
		this.defaultReceiveDate = defaultReceiveDate;
	}

	@Column(name = "default_pay_date", precision = 12, scale = 0)
	public Float getDefaultPayDate() {
		return this.defaultPayDate;
	}

	public void setDefaultPayDate(Float defaultPayDate) {
		this.defaultPayDate = defaultPayDate;
	}

	@Column(name = "remark", length = 300)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "create_user_id")
	public Long getCreateUserId() {
		return this.createUserId;
	}

	public void setCreateUserId(Long createUserId) {
		this.createUserId = createUserId;
	}

	@Column(name = "create_user_name", length = 100)
	public String getCreateUserName() {
		return this.createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	@Column(name = "create_time", length = 14)
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "version", length = 10)
	public String getVersion() {
		return this.version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}